<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "z_face_data".
 *
 * @property int $id
 * @property int $score
 * @property int $time
 * @property string $type
 * @property string $userid
 * @property string $device
 */
class ZFaceData extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'z_face_data';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
//            [['score', 'time'], 'integer'],
            [['type', 'userid', 'device'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'score' => 'Score',
            'time' => 'Time',
            'type' => 'Type',
            'userid' => 'Userid',
            'device' => 'Device',
        ];
    }
}
